/* الكود بالكامل بعد تطبيق الخلفية الشاملة والنافذة الشفافة (MFB - Glassmorphism) */

:root {
    /* متغيرات الألوان الجديدة (MFB) */
    --primary-color: #1E40AF;       /* (mfb-primary-blue) لون أساسي أزرق داكن */
    --secondary-color: #28a745;     /* (أخضر للنجاح) */
    --blue-accent: #007BFF;         /* (mfb-blue-accent) لون تظليل أزرق */
    --dark-bg: #101F40;             /* (mfb-dark-bg) خلفية داكنة */
    --dark-text: #333333;           /* للنص الداكن (قليل الاستخدام في هذا التصميم) */
    --muted-text: #6C757D;          /* للنصوص الثانوية (قليل الاستخدام) */
    --white-color: #FFFFFF;         /* (mfb-light-gray) */
    --text-light: #F8F9FA;          /* (mfb-text-light) للنص الفاتح */
    --border-color: #e9ecef;        /* لون حدود فاتح */
    --light-bg: #FFFFFF;            /* (mfb-light-gray) خلفية فاتحة (للاستخدام داخل عناصر) */
    --hover-fill: #60A5FA;          /* لملء تأثير الزر عند الهوفر */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg); 
    overflow-y: auto; /* السماح بالتمرير عند الحاجة */
}

/* --------------------------------------
    تقسيم الشاشة الأساسي (تم إلغاؤه وتحويله لنظام الشاشة الواحدة)
    -------------------------------------- */
.split-container {
    display: block; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; 
}

/* --------------------------------------
    اللوحة اليسرى (الخلفية / الجسيمات) - أصبحت الخلفية الكاملة
    -------------------------------------- */
.left-panel { 
    width: 100vw; 
    height: 100vh; 
    position: fixed; 
    top: 0;
    left: 0;
    /* الحفاظ على التدرج الأصلي لليفت بانل */
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color)); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light); 
    z-index: 0; /* وضعه في الخلفية التامة */
    box-shadow: none; 
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 2; /* فوق الجسيمات */
    text-align: center;
    padding: 20px;
    /* إبقاء محتوى h1 مرئياً في الخلفية إن وجد */
}
.left-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 3px solid var(--text-light); 
    padding: 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------
    اللوحة اليمنى (النماذج والكاردات) - النافذة المركزية الشفافة
    -------------------------------------- */
.right-panel {
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; /* توسيط عمودي لمحتوى الـ right-panel */
    align-items: center; /* توسيط أفقي لمحتوى الـ right-panel */
    padding: 20px; 
    background-color: transparent; /* الخلفية شفافة تماماً */
    z-index: 10;
}

/* --------------------------------------
   تنسيق حاويات النماذج لتكون مربعة ومركزية وشفافة (Glassmorphism)
   -------------------------------------- */
.login-form-container,
.registration-form-container,
#forgotPasswordForm { 
    width: 100%;
    max-width: 450px; /* العرض المربع المطلوب */
    padding-inline: 30px;
    padding-block: 15px;
    /* تطبيق الشفافية والتضبيب (Glassmorphism) */
    background-color: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-radius: 12px;
    box-shadow: -5px 5px 20px #daecf36e; 
    color: var(--text-light); 
    border: 1px solid #ffc107c2; 
    margin: 0 auto; 
    margin-bottom: 20px; 
    transition: opacity 0.5s ease;
    margin-block-start: 7rem;
    transform: scale(0.95);
    z-index: 1000;
  position: relative;
}
p{
    font-size: 12px !important;
  font-weight: 700;
}

/* تعديل ألوان النص والعناوين داخل الفورم لتناسب الخلفية الداكنة */
.login-form-container h4, .registration-form-container h4, #forgotPasswordForm h4 {
    color: var(--white-color); 
}
.login-form-container p, .registration-form-container p, #forgotPasswordForm p {
    color: var(--text-light); 
}

/* تنسيق حقول الإدخال لتتناسب مع الخلفية الشفافة */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1); 
    border-color: rgba(183, 187, 209, 0.897); 
    color: var(--white-color); 
    box-shadow: 0.5px 2px 3px 0.25px rgba(186, 194, 202, 0.534);
}
.form-control::placeholder { 
    color: rgba(255, 255, 255, 0.7);
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(187, 207, 230, 0.712);
    box-shadow: 0.5px 2px 3px 0.25px rgba(186, 194, 202, 0.534); 
}

/* أزرار الإجراء الأساسية (الحفاظ على الألوان الأصلية) */
.btn-signin, .btn-register-next,.btn-register, .btn-send-recovery, .btn-verify {
    background-color: var(--primary-color);
    border-color: var(--light-text);
    color: var(--white-color);
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
}
.btn-signin:hover, .btn-register-next:hover, .btn-send-recovery:hover, .btn-verify:hover {
    background-color: var(--blue-accent);
    border-color: var(--blue-accent);
    color: var(--white-color);
}
.btn-verify { /* تمييز زر التحقق بلون النجاح */
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* زر العودة الشفاف */
.btn-back {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    transition: all 0.3s;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
}
.btn-back:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--text-light);
}

/* زر دخول المسؤول */
.btn-admin {
    background-color: transparent;
    border: 2px solid var(--text-light); 
    color: var(--text-light);
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-admin:hover {
   background-color: var(--text-light);
   color: var(--primary-color);
}

/* تنسيق الروابط (لون مميز على الخلفية الداكنة) */
.form-links span {
    color: var(--text-light) !important;
}
.form-links a {
    color: var(--blue-accent) !important;
    font-weight: bold;
}
.form-links a:hover {
    color: var(--hover-fill) !important;
}

/* شريط التقدم ومتطلبات كلمة المرور - تنسيقات شفافة */
.registration-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px auto;
    width: 80%;
}

.registration-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.progress-step.active {
    background-color: var(--primary-color); /* اللون الأساسي الجديد */
    color: var(--white-color);
    transform: scale(1.1);
}

.progress-step.completed {
    background-color: var(--secondary-color); /* اللون الأخضر للنجاح */
    color: var(--white-color);
}
.otp-input {
  width: 40px;
  height: 50px;
  text-align: center;
  font-size: 1.2rem;
  margin: 0 5px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: border-color 0.3s;
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white-color);
}

.password-requirements {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light); 
}
.check-item i {
    color: #f8d7da; /* لون خطأ فاتح */
}
.check-item.valid {
    color: var(--secondary-color) !important;
}
.progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}


/* --------------------------------------
    تنسيق كاردات الميزات الشفافة
    -------------------------------------- */
.features-section {
    width: 100%;
    max-width: 900px; /* توسيع قسم الميزات ليشمل 3 كاردات أفقياً على الشاشات الكبيرة */
    margin: 40px auto; 
    border-top: 1px solid rgba(255, 255, 255, 0.7); 
    padding-top: 40px;
    color: var(--text-light); 
    position: relative;
    z-index:1000;
}
.features-section h4 {
    color: var(--white-color); 
    text-align: center; 
    margin-bottom: 25px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 12px;
    padding: 20px;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.15); 
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--text-light); 
    margin-bottom: 15px;
    display: block;
}

.feature-card h5 {
    color: var(--white-color); 
}

.feature-card p {
    color: var(--text-light); 
}


/* --------------------------------------
    تنسيقات الشاشات الصغيرة - لضمان بقاء التصميم متجاوباً
    -------------------------------------- */
@media (max-width: 992px) {
    .left-panel {
        /* حافظ على الخلفية الثابتة */
        width: 100vw;
        height: 100vh;
        z-index: -1;
    }
    .right-panel {
        padding: 15px;
    }
    .login-form-container,
    .registration-form-container,
    #forgotPasswordForm {
        max-width: 90%; 
        /* إلغاء التضبيب على الشاشات الصغيرة لتحسين الأداء */
         backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: none;
    }
    .features-section {
        max-width: 90%;
    }
     .feature-card {
        /* ترتيب الكاردات عمودياً على الجوال */
        margin-bottom: 15px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    /* تعديل تنسيق الكاردات على الشاشات الأصغر لتظهر 3 كاردات بعرض 100% */
    .features-section .row > * {
        width: 100%;
    }
}
img{
     width: 250px !important;
    height: 90px;
}
#lang{
    justify-content: end;
}
#img{
    justify-content: center;
}
.language-switcher{
    width: auto;
}
.btn.btn-sm.btn-outline-primary.btn-admin{
    padding: 5px;
}
.input-group-text {
  background: unset;
  color: rgba(249, 251, 253, 0.75) !important;
}

div#rc-anchor-container,.g-recaptcha{
    background: rgba(255, 255, 255, 0.3) !important;
   
    color: #FFFFFF;
}
.rc-anchor-light{
     background: rgba(255, 255, 255, 0.3) !important;
}





       /* لون شريط القوة */
#password-strength-bar.weak   { background: #dc3545; }
#password-strength-bar.medium { background: #ffc107; }
#password-strength-bar.strong { background: #28a745; }

/* المتطلبات: نخلي شكلها نفس الجديد، ونغير فقط عند valid */
.check-item.valid i { color: #28a745; } /* صح */
.check-item i { color: #ffffff; }       /* خطأ (كما في تصميمك لأنه أبيض) */
#country_code option,#iata_status option,#branch_name option,#country option,#owner_isd option,#agency_isd option {
  color: #05205a;
}
/* عربي */
html[lang="ar"] body{
  font-family:"Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(183, 187, 209, 0.897);
  color: var(--white-color);
  box-shadow: 0.5px 2px 3px 0.25px rgba(186, 194, 202, 0.534);
  font-size: 15px;
  font-weight: 700;
}

/* ✅ لون الكتابة داخل الحقول */
.form-control,
.form-select {
  color: #fff !important;
}

/* ✅ لون الـ placeholder (كل المتصفحات) */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1; /* مهم لبعض المتصفحات */
}

.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.92) !important;
}
.form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1;
}
.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.92) !important;
}
.form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ✅ لون النص أثناء الـ focus (وقت الكتابة) */
.form-control:focus,
.form-select:focus {
  color: #fff !important;
}

/* ✅ إذا المتصفح يلوّن autofill بالأصفر (Chrome) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
}
.form-links span {
  color: var(--text-light) !important;
  font-weight: 600;
}
.small, small {
  font-size: 15px !important;
  font-weight: 650;
}

/* =========================
   Fix input-group rounded corners in RTL
   (password toggle + ISD select + any input-group)
========================= */

/* RTL: أول عنصر في input-group يكون طرفه الأيمن دائري، وآخر عنصر طرفه الأيسر دائري */
html[dir="rtl"] .input-group > :first-child {
  border-top-right-radius: .375rem !important;
  border-bottom-right-radius: .375rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] .input-group > :last-child {
  border-top-left-radius: .375rem !important;
  border-bottom-left-radius: .375rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* RTL: إزالة خط التماس المزدوج بين عناصر الـ input-group */
html[dir="rtl"] .input-group > :not(:first-child) {
  margin-right: -1px;     /* بدل margin-left في LTR */
  margin-left: 0;
}

/* RTL: عند وجود span/input-group-text كزر إظهار كلمة المرور */
body[dir="rtl"] .input-group .input-group-text {
  border-right: 0 !important;
  border-left: 1px solid rgba(183, 187, 209, 0.897) !important;
}

/* RTL: لحقول كلمة المرور (input ثم span) — تأكيد إضافي */
body[dir="rtl"] #password-div .input-group .form-control {
  border-top-right-radius: .375rem !important;
  border-bottom-right-radius: .375rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body[dir="rtl"] #password-div .input-group .password-toggle,
body[dir="rtl"] #password-div .input-group .input-group-text {
  border-top-left-radius: .375rem !important;
  border-bottom-left-radius: .375rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* RTL: لمجموعة ISD + input (select ثم input) */
body[dir="rtl"] .input-group select.form-select {
  border-top-right-radius: .375rem !important;
  border-bottom-right-radius: .375rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body[dir="rtl"] .input-group input.form-control {
  border-top-left-radius: .375rem !important;
  border-bottom-left-radius: .375rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.input-group-text {
  background-color: rgba(255, 255, 255, 0.1) !important;
   box-shadow: 0.5px 2px 3px 0.25px rgba(186, 194, 202, 0.534);
   border-color: rgba(183, 187, 209, 0.897) !important;
}
.fas.fa-eye-slash ,.fas.fa-eye{
  color: #fff !important;
  font-weight: 900;
  font-size: 25px;
}
/* Custom file input */
.nh-file{
  display:flex;
  align-items:center;
  gap:10px;
}

.nh-file{
  position: relative;
}

/* ✅ لا تخرجه برا الشاشة.. خليه فوق الزر شفاف */
.nh-file-input{
  position: absolute;
  inset: 0;                /* يغطي مساحة .nh-file بالكامل */
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  width: 100%;
  height: 100%;
}

.nh-file-btn{
  border: 1px solid rgba(183, 187, 209, 0.897);
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor:pointer;
  box-shadow: 0.5px 2px 3px 0.25px rgba(186, 194, 202, 0.25);
  width: 70%;
}

.nh-file-btn:hover{
  background: rgba(255,255,255,0.18);
}

.nh-file-name{
  color: rgba(255,255,255,0.9);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Utility classes (بديل لـ inline style لتفادي CSP style-src-attr) */
.nh-display-none{ display: none !important; }
.nh-ml-10{ margin-left: 10px; }
.nh-text-danger-small{ color: red; font-size: 13px; }
.nh-alert-title{ font-size: 18px; font-weight: 700; }
.nh-alert-msg{ font-size: 13px; }
.nh-text-white-p{ color: #fff; }
.nh-select-isd{ max-width: 120px; }
.nh-min-h-18{ min-height: 18px; }
.nh-border-white-25{ border-color: rgba(255,255,255,.25); }
.nh-progress-thin{ height: 8px; }
.nh-progress-bar-init{ width: 0%; transition: width 0.4s ease-in-out; }


/* =========================
   ValidationEngine Bubble Style
========================= */

/* خليه فوق الحقل مباشرة وبشكل واضح */
.formError {
  z-index: 999999 !important;
}

/* صندوق الرسالة (الفقاعة) */
.formError .formErrorContent{
  background: #ffffff !important;          /* خلفية بيضاء */
  color: #b00020 !important;               /* أحمر دموي */
  border: 1px solid rgba(176,0,32,.35) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.25) !important;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  direction: rtl;
  text-align: right;
}

/* سهم صغير للفقاعة */
.formError .formErrorArrow{
  display: none !important; /* نخفي سهم البلجن الافتراضي لأنه شكله قديم */
}

/* بديل: سهم بسيط تحت الفقاعة */
.formError .formErrorContent::after{
  content: "";
  position: absolute;
  left: 18px; /* في RTL ممكن تعدلها حسب رغبتك */
  bottom: -8px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
}

/* لو أردت عكس الألوان (فقاعة حمراء ونص أبيض) احذف أعلى 3 أسطر واستعمل:
.formError .formErrorContent{
  background:#b00020 !important;
  color:#ffffff !important;
  border:none !important;
}
.formError .formErrorContent::after{ border-top-color:#b00020; }
*/

